package nl.hr.cmi.opleiding.hodexbridge.model;


public class Opleidinginformatie implements Comparable<Opleidinginformatie> {

	public static final String URL = "http://www.hodexer.nl/hodex/hro/hodex_nl_hro_1627.xml";

	private String programSummary;
	private String programDescription;
	private String croho;// 34479

	public String getCroho() {
		return croho;
	}

	public void setCroho(String croho) {
		this.croho = croho;
	}

	public String getProgramSummary() {
		return programSummary;
	}

	public void setProgramSummary(String programSummary) {
		this.programSummary = programSummary;
	}

	public String getProgramDescription() {
		return programDescription;
	}

	public void setProgramDescription(String programDescription) {
		this.programDescription = programDescription;
	}



	@Override
	public int compareTo(Opleidinginformatie another) {
		if (another == null) {
			return 1;
		} else if (this.croho.equals(another.getCroho())) {
			return 0;
		} else {
			return 1;
		}
	}
}
